package Client.View;

import javax.swing.JLabel;
import javax.swing.JPanel;

import logic.ChatMessage;

public class ChatMsgObject extends JPanel{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1204074375293900141L;
	ChatMessage msg;
		
	public ChatMsgObject(ChatMessage msg){
		this.msg = msg;
		
		initialize();
	}
	
	private void initialize(){
		
		this.add(new JLabel(msg.getFrom()+ ": "));
		this.add(new JLabel(msg.getMsg()));
		
		
	}
	
	
	
}
